package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ComsumerComponet {
    @Reference
    private HelloService  helloService;

    public String  sayHello(String name,int timeToWait){
        return  helloService.sayHello(name,timeToWait);
    }

    public String sayHai(String name) {
        return helloService.sayHai(name);
    }

    public String sayNiHao(String name) {
        return helloService.sayNiHao(name);
    }

    public String sayNiHaoA(String name) {
        return helloService.sayNiHaoA(name);
    }

}
